#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

# skip checking just load bash completion
. /usr/share/bash-completion/bash_completion

# load separate alias file
. ~/.bash_aliases

# just a simple bash prompt
export PS1='\[\e[0;1;2;90m\]$? \[\e[0;1;94m\]\w \[\e[0;1;93m\]$(git branch 2>/dev/null | grep '"'"'^*'"'"' | colrm 1 2)\[\e[0m\]\$ \[\e[0m\]'

# tweaking some bash behaviour
bind 'set completion-ignore-case on'

shopt -s checkwinsize globstar complete_fullquote extquote extglob \
	force_fignore hostcomplete xpg_echo promptvars sourcepath progcomp autocd \
	cdspell dirspell direxpand nocasematch histappend cmdhist lithist

set -o interactive-comments +o monitor -o hashall \
	-o braceexpand -o emacs -o histexpand -o posix

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

#[ -f ~/.fzf.bash ] && source ~/.fzf.bash
